// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '设备借还记录',
        name: 'EquipmentRecord',
        url: "/EquipmentRecord/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"EquipmentType":"","EquipmentNo":"","Borrower":"","borrowDate":"","CurrentUser":"","ReturnUser":"","ReturnDate":"","State":""};
    const editFormOptions = [[{"dataKey":"设备列表","data":[],"title":"设备类型","required":true,"field":"EquipmentType","type":"select"}],
                              [{"title":"设备编号","required":true,"field":"EquipmentNo","type":"text"}],
                              [{"title":"借用人","required":true,"field":"Borrower","type":"text"}],
                              [{"title":"借用日期","required":true,"field":"borrowDate","type":"date"}],
                              [{"title":"当前使用人","required":true,"field":"CurrentUser","type":"text"}],
                              [{"title":"归还人","field":"ReturnUser","type":"text"}],
                              [{"title":"归还日期","field":"ReturnDate","type":"date"}],
                              [{"dataKey":"设备状态","data":[],"title":"状态","field":"State","type":"radio"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'EquipmentType',title:'设备类型',type:'string',bind:{ key:'设备列表',data:[]},width:110,require:true,align:'left'},
                       {field:'EquipmentNo',title:'设备编号',type:'string',width:110,require:true,align:'left'},
                       {field:'Borrower',title:'借用人',type:'string',width:110,require:true,align:'left'},
                       {field:'borrowDate',title:'借用日期',type:'datetime',width:150,require:true,align:'left'},
                       {field:'CurrentUser',title:'当前使用人',type:'string',width:110,require:true,align:'left'},
                       {field:'ReturnUser',title:'归还人',type:'string',width:110,align:'left'},
                       {field:'ReturnDate',title:'归还日期',type:'datetime',width:150,align:'left'},
                       {field:'State',title:'状态',type:'int',bind:{ key:'设备状态',data:[]},width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}